//
//  LWhigtGoodsCell.h
//  LWShopItem
//
//  Created by mac on 17/4/14.
//  Copyright © 2017年 LWShop.com. All rights reserved.
//

#import <UIKit/UIKit.h>
@class LWGroupList,LWhigtGoodsCell;

@protocol LWhigtGoodsCellDelegate <NSObject>

//购物车数量显示代理
@required
- (void)changeBadge;

- (void)addInToShopCarWithModel:(LWGroupList *)model;
- (void)deleteFromShopCarWithModel:(LWGroupList *)model;


//增加
- (void)higtGoodsCell:(LWhigtGoodsCell *)higtGoodsCell didFinishIncreaseFood:(LWGroupList *)food andStartPoint:(CGPoint)starPoint;

//减少
- (void)higtGoodsCell:(LWhigtGoodsCell *)higtGoodsCell didFinishDecreaseFood:(LWGroupList *)food;

@end


@interface LWhigtGoodsCell : UITableViewCell

@property (strong, nonatomic) LWGroupList *model;

//记录数量属性
@property (assign,nonatomic)NSInteger count;

//代理属性
@property (weak,nonatomic)id<LWhigtGoodsCellDelegate>delegate;

//是否增加
@property (assign,nonatomic)BOOL isIncrease;

//动画起始点
@property (assign,nonatomic)CGPoint starP;


@end
